<template>
  <div>
    <ul>
      <li v-for="m in msg" :key="m.id">
        <router-link :to="{
          name:'xiangqin',
          query:{
            id:m.id,
            title:m.title
          }
        }">{{m.title}}</router-link>
      
      </li>
    </ul>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "Message",
  data() {
    return {
      msg: [
        { id: "001", title: "测试message1" },
        {
          id: "002",
          title: "测试message2",
        },
        {
          id: "003",
          title: "测试message3",
        },
      ],
    };
  },
};
</script>

<style>
</style>